Gio.DBus.session.own_name('org.gnome.Shell.Screenshot', Gio.BusNameOwnerFlags.REPLACE, null, null);
}
- _createScreenshot(invocation, needsDisk = true) {
+ _createScreenshot(invocation, needsDisk = true, restrictCallers = true) {
let lockedDown = false;
if (needsDisk)
lockedDown = this._lockdownSettings.get_boolean('disable-save-to-disk');
Gio.IOErrorEnum, Gio.IOErrorEnum.PERMISSION_DENIED,
'Saving to disk is disabled');
return null;
- } else {
+ } else if (restrictCallers) {
try {
this._senderChecker.checkInvocation(invocation);
} catch (e) {
}
async PickColorAsync(params, invocation) {
- const screenshot = this._createScreenshot(invocation, false);
+ const screenshot = this._createScreenshot(invocation, false, false);
if (!screenshot)
return;